import requests
import bs4
from bs4 import BeautifulSoup
url='https://www.1ppt.com/'
res=requests.get(url)
#print(res)
res.encoding='utf-8'
#print(res.text)
soup=BeautifulSoup(res.text,'html.parser')
#print(soup)
tags=soup.find_all('div',{'id':'contentsource'})
#print(tags)
for i in tags:
        print(i.text)
        with open('1.txt','a') as f:
                f.write(a)
